home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2001-04-13 | 1.1 KB | 48 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="1"
- "UIPATH"="Program Options\Built in Windows Apps\Disk Defragmenter\"
- "NAME"="Boot Optimization"
- "VERSION"="1.01"
- "OSVERSION"="000001"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Optimize Boot"
- "DESCRIPTION 1"="Enables or disables Boot Optimization using Disk Defrag in Windows XP."
- "AUTHOR"="Xteq Systems (CptSiskoX)"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"="Found during registry exploration of Windows XP."
-
-
- sP="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction\"
- sP2="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\BootOptimizeFunction\"
- sV2="Enable"
-
- Sub Plugin_Initialize
- If GetWinVer=6 then
- sWD=GetWinDir
-
- s=RegReadValue(sp2&sv2)
- if UCase(s)="Y" then
- Call SetUIElement(1,true)
- end if
- else
- Disable
- end if
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- Call RegWriteValue(sp2&sv2,"Y",1)
- else
- Call RegWriteValue(sp2&sv2,"N",1)
- end if
- Logoff
- End Sub
-
- Sub Plugin_Terminate
- End Sub
-